<?php 
session_start();
include("../controller/User.class.php");
include("../model/Db.class.php");
$db = new Db();
$u= new User($db);
$error =$u->quickLoginInfoCheck();
if($error){
	echo "<script>alert('".$error['msg']."');window.history.go(-1);</script>";
	exit;
}
$result =$u->userQuickLogin();
if($result['status']==104){
	echo "<script>alert('".$result['msg']."');window.history.go(-1);</script>";
	exit;
}
if($result['status']==105){
	if (isset ($_SESSION['userurl'])){
		//会话中有要跳转的页面
		$url = $_SESSION['userurl'];
	}else{
		//没有要跳转的页面，则转到首页
		$url = '../view/index.v.php';
	}
	echo "<script>alert('".$result['msg']."');window.location.href='".$url."';</script>";
	exit;
}
 ?>